class MenuItemEvent {
    /**
     * Click event type
     * 0: down event
     * 1: up event
     * 2: longPress event
     */
    pressEvent:number;
    // menuItem id
    id:number;
    // Button name
    name:string;
    // Font color
    color:number;
    // Button icon path
    icon:string;
    // Background color
    bgColor:number;
}

interface MenuItemListener {
    onMenuItemPress(event:MenuItemEvent):void;
}

// Subscription for button event listener
interface MenuItemSubscription {
    id:number;
    listener:MenuItemListener;
    remove:()=>void;
}

export {MenuItemEvent, MenuItemListener, MenuItemSubscription};